package m.jclecai.com.presenter.lottery;

import java.util.ArrayList;
import java.util.List;

import m.jclecai.com.base.BaseActivity;
import m.jclecai.com.presenter.BasePresenter;

/**
 * Created by Dinosa on 2018/1/8.
 *
 * 快乐十分的业务逻辑类
 */

public class KLSFPresenter  extends BasePresenter{


    private final BaseActivity mKlsfActivity;

    public KLSFPresenter(BaseActivity baseActivity) {
        super(baseActivity);
        mKlsfActivity = baseActivity;
    }

    /**
     * 根据传入的一个number返回一个1到number的一个Int集合
     * @param number  5
     * @return 1，2，3，4，5
     */
    public List<String> getListData(int number) {
        List<String> list = new ArrayList<>();
        for (int i = 0; i < number; i++) {
            int ballNumber = i + 1;
            list.add(ballNumber + "");
        }
        return list;
    }


    /**
     * 这方法会根据不同的玩法显示不同的ui界面；
     */
    private void refreshUI(int mCurrentMode) {
    /*    switch (mCurrentMode) {
            case 0:
                //选一数投
                mKlsfActivity.onCenterPopPositionOneClick();
                break;
            case 1:
                //选一红投
                onCenterPopPositionTwoClick();
                break;
            case 2:
                //任选二
                onCenterPopPositionThreeClick();
                break;
            case 3:
                //任选三
                onCenterPopPositionFourClick();
                break;
            case 4:
                //任选四
                onCenterPopPositionFiveClick();
                break;
            case 5:
                //任选五
                onCenterPopPositionSixClick();
                break;
            case 6:
                //选二连组
                onCenterPopPositionSevenClick();
                break;
            case 7:
                //选二直连
                onCenterPopPositionEightClick();
                break;
        }*/
    }

}
